package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DeviceStatisticsMapper;
import com.ruoyi.system.domain.DeviceStatistics;
import com.ruoyi.system.service.IDeviceStatisticsService;

/**
 * 设备上线数量Service业务层处理
 * 
 * @author 刘进祥
 * @date 2025-02-14
 */
@Service
public class DeviceStatisticsServiceImpl implements IDeviceStatisticsService 
{
    @Autowired
    private DeviceStatisticsMapper deviceStatisticsMapper;

    /**
     * 查询设备上线数量
     * 
     * @param id 设备上线数量主键
     * @return 设备上线数量
     */
    @Override
    public DeviceStatistics selectDeviceStatisticsById(Long id)
    {
        return deviceStatisticsMapper.selectDeviceStatisticsById(id);
    }

    /**
     * 查询设备上线数量列表
     * 
     * @param deviceStatistics 设备上线数量
     * @return 设备上线数量
     */
    @Override
    public List<DeviceStatistics> selectDeviceStatisticsList(DeviceStatistics deviceStatistics)
    {
        return deviceStatisticsMapper.selectDeviceStatisticsList(deviceStatistics);
    }

    /**
     * 新增设备上线数量
     * 
     * @param deviceStatistics 设备上线数量
     * @return 结果
     */
    @Override
    public int insertDeviceStatistics(DeviceStatistics deviceStatistics)
    {
        return deviceStatisticsMapper.insertDeviceStatistics(deviceStatistics);
    }

    /**
     * 修改设备上线数量
     * 
     * @param deviceStatistics 设备上线数量
     * @return 结果
     */
    @Override
    public int updateDeviceStatistics(DeviceStatistics deviceStatistics)
    {
        return deviceStatisticsMapper.updateDeviceStatistics(deviceStatistics);
    }

    /**
     * 批量删除设备上线数量
     * 
     * @param ids 需要删除的设备上线数量主键
     * @return 结果
     */
    @Override
    public int deleteDeviceStatisticsByIds(Long[] ids)
    {
        return deviceStatisticsMapper.deleteDeviceStatisticsByIds(ids);
    }

    /**
     * 删除设备上线数量信息
     * 
     * @param id 设备上线数量主键
     * @return 结果
     */
    @Override
    public int deleteDeviceStatisticsById(Long id)
    {
        return deviceStatisticsMapper.deleteDeviceStatisticsById(id);
    }
}
